package exercise12;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.Border;

public class Prog12_1 extends JFrame{
	
	public Prog12_1(){
//		setLayout(new FlowLayout(FlowLayout.CENTER, 1, 1));
		JPanel p1 = new JPanel();
		JPanel p2 = new JPanel();		
		for(int i = 1; i <= 3; i++){
			p1.add(new JButton("Button " + i));
			p2.add(new JButton("Button " + (i + 3)));
		}
		add(p1, BorderLayout.NORTH);
		add(p2, BorderLayout.SOUTH);		
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		JFrame frame = new Prog12_1();
		frame.setTitle("Exercise12_1");
		frame.setSize(800, 150);
		frame.setLocationRelativeTo(null);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	}

}
